package cn.com;  
  
import mars.activity.TestFilp;
import android.app.Activity;  
import android.view.animation.Animation;  
  
public class DisplayNextView implements Animation.AnimationListener {  
  
    Object obj;  
  
    // �����������Ĺ��캯��  
    Activity ac;  
    int order;  
  
    public DisplayNextView(Activity ac, int order) {  
        this.ac = ac;  
        this.order = order;  
    }  
  
    public void onAnimationStart(Animation animation) {  
    }  
  
    public void onAnimationEnd(Animation animation) {  
        doSomethingOnEnd(order);  
    }  
  
    public void onAnimationRepeat(Animation animation) {  
    }  
  
    private final class SwapViews implements Runnable {  
        public void run() {   
                ((TestFilp) ac).jumpToSecond();   
        }  
    }  
  
    public void doSomethingOnEnd(int _order) {  
            ((TestFilp) ac).layout1.post(new SwapViews());  
    }  
}  


